//
//  UIView+Utils.h
//  刷刷
//
//  Created by 谭真 on 16/4/16.
//  Copyright © 2016年 圣巴(上海)文化传播有限公司. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIView (Utils)

/// 连续三次的动画效果 类似微博的点赞
+ (void)showOscillatoryAnimationWithLayer:(CALayer *)layer scale1:(CGFloat)scale1 scale2:(CGFloat)scale2;
+ (void)showOscillatoryAnimationWithLayer:(CALayer *)layer scale1:(CGFloat)scale1 duration1:(CGFloat)duration1 scale2:(CGFloat)scale2 duration2:(CGFloat)duration2;

/// 购物车动画飞入效果
+ (void)flyAnimationWithContentView:(UIView *)contentView fromX:(CGFloat)x y:(CGFloat)y;
+ (void)flyAnimationWithContentView:(UIView *)contentView fromX:(CGFloat)x y:(CGFloat)y toX:(CGFloat)toX toY:(CGFloat)toY;

@end
